lib/repo-pull: fix GPG check while pulling remote
authorDenis Pynkin <denis.pynkin@collabora.com>
Mon, 6 Apr 2020 22:11:29 +0000 (01:11 +0300)
committerDenis Pynkin <denis.pynkin@collabora.com>
Mon, 6 Apr 2020 22:11:29 +0000 (01:11 +0300)
commitef1aeb7458612e933b0ee58ae0eb6c7590622b5d
treeab167cb9501db417cf2a1d79ca1b3e5e1644396b
parent0638d1ea868387245debbd62da13d040ba5a005c
lib/repo-pull: fix GPG check while pulling remote

If GPG support is disabled in a build time we should to check if any of
options "gpg_verify" or "gpg_verify_summary" is set to TRUE instead
of checking if they are passed via options while pulling from remote.

Fixed the failure with assertion of `ostree find-remotes --pull --mirror`
calling (`tests/test-pull-collections.sh`) if libostree has been compiled
without GPG support.

Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
src/libostree/ostree-repo-pull.c